{template '_header'}

<script>document.title = "我的团队绩效"; </script>

<script>

    document.documentElement.style.fontSize =document.documentElement.clientWidth/750*40 +"px";

</script>

<script src="//at.alicdn.com/t/font_82607_6xtuyfrxik6v42t9.js"></script>

<style type="text/css">

    .icon1 {

        width: .8rem; height: .8rem;

        vertical-align: -0.15em;

        fill: currentColor;

        overflow: hidden;

    }

</style>

{template 'commission/common'}

<div class="fui-page fui-page-current page-commission-index ">

    <div class="fui-header">

        <div class="fui-header-left">

            <a class="back" onclick='location.back()'></a>

        </div>

        <div class="title">我的个人绩效</div>

        <div class="fui-header-right"></div>

    </div>

    <div class='fui-content navbar'>

        <div class="headinfo">

            <div class="userinfo" style="height: auto;">

                <div class='fui-list'>

                    <div class='fui-list-media'><img src="{$member['avatar']}" /></div>

                    <div class='fui-list-info' style="width: 12rem">

                        <div class='title'>{$member['nickname']} </div>



                        <div class='subtitle'  {if $this->set['levelurl']!=''}onclick='location.href="{php echo $this->set['levelurl']}"'{/if}>

                            {php echo empty($level) ? ( empty($this->set['levelname'])?'普通等级':$this->set['levelname'] ) : $level['levelname']}

                            {if $this->set['levelurl']!=''}<i class='icon icon-question' style='font-size:8px;'></i>{/if}

                        </div>

                    </div>

                </div>



            </div>

        </div>


        {if $list}
            {loop $list $k $v}
                <div class="fui-cell-group">
                    <div class="fui-cell"style="    height: 2.85rem;">
                        <div class="fui-cell-text">
                            <span style="color: red;text-align: center;"><h2>{php echo $firstyear + $k}年绩效</h2></span>
                        </div>
                    </div>
                </div>
                {loop $list[$k] $k1 $v1}
                    <div class="userblock">
                        <div class="line total new">
                            <div class="num">第{php echo $k1 + 1}季度</div>
                            <div class="title" style="font-size: 20px;float: left;">¥ {php echo number_format($v1['price'],2)}</div>
                            {if $v1['status']}
                            <div class="title" style="font-size: 20px;float: right;"><span style="color: greenyellow;">已获得奖励: </span>¥ {php echo number_format($v1['fanli'],2)}</div>
                            {else}
                            <div class="title" style="font-size: 20px;float: right;"><span style="color: darkred;">可获得奖励: </span>¥ {php echo number_format($v1['fanli'],2)}</div>
                            {/if}
                        </div>
                    </div>
                {/loop}
            {/loop}
        {else}
            <h2 style="color: #b9b9b9;text-align: center;margin-top: 50%;">暂无任何订单</h2>
        {/if}









        {if !empty($this->set['rank']['status'])}

        <a class="fui-cell" href="{php echo mobileUrl('commission/rank');}">

            <div class="fui-cell-icon ">

                <i class="icon icon-paihang text-yellow"></i>

            </div>

            <div class="fui-cell-text">{php echo $this->set['texts']['commission']}排名</div>

            <div class="fui-cell-remark" style="font-size: 0.5rem;"></div>

        </a>

        {/if}

        {if p("offic")}

        <a class="fui-cell" href="{php echo mobileUrl('commission/branch')}">

            <div class="fui-cell-icon ">

                <i class="icon icon-store text-yellow"></i>

            </div>

            <div class="fui-cell-text">我的分店</div>

            <div class="fui-cell-remark" style="font-size: 0.5rem;"></div>

        </a>

        <a class="fui-cell" href="{php echo mobileUrl('commission/branch/fans')}">

            <div class="fui-cell-icon ">

                <i class="icon icon-person2 text-yellow"></i>

            </div>

            <div class="fui-cell-text">我的粉丝</div>

            <div class="fui-cell-remark" style="font-size: 0.5rem;"></div>

        </a>

        {/if}

        {if $hasglobonus}

        <a class="fui-cell" href="{php echo mobileUrl('globonus')}">

            <div class="fui-cell-icon ">

                <i class="icon icon-gudong1 text-yellow"></i>

            </div>

            <div class="fui-cell-text">{$plugin_globonus_set['texts']['center']}</div>

            <div class="fui-cell-remark" style="font-size: 0.5rem;"></div>

        </a>

        {/if}

        {if $hasabonus}

        <a class="fui-cell" href="{php echo mobileUrl('abonus')}">

            <div class="fui-cell-icon ">

                <i class="icon icon--guoji-xianxing text-yellow"></i>

            </div>

            <div class="fui-cell-text">{$plugin_abonus_set['texts']['center']}</div>

            <div class="fui-cell-remark" style="font-size: 0.5rem;"></div>

        </a>

        {/if}

        {if $hasauthor}

        <a class="fui-cell" href="{php echo mobileUrl('author')}">

            <div class="fui-cell-icon ">

                <i class="icon icon-huiyuan3 text-yellow"></i>

            </div>

            <div class="fui-cell-text">{$plugin_author_set['texts']['center']}</div>

            <div class="fui-cell-remark" style="font-size: 0.5rem;"></div>

        </a>

        {if $team_money>0}

        <a class="fui-cell">

            <div class="fui-cell-icon ">

                <i class="icon icon-qian1 text-yellow"></i>

            </div>

            <div class="fui-cell-text">已获团队奖励{$team_money}元</div>

            <div class="fui-cell-remark" style="font-size: 0.5rem;"></div>

        </a>

        {/if}

        {/if}

    </div>

    {template '_copyright'}

</div>



{php $this->footerMenus()}

</div>

{template '_footer'}